package mygang.service;

import java.util.List;
import mygang.dao.SystemDAO;
import mygang.model.SystemSetting;
import org.springframework.stereotype.Service;

/**
 *
 * @author Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
 * date: 14/08/2012
 */
@Service("systemSettingsService")
public class SystemSettingsServiceImpl<D extends SystemDAO> extends AbstractService<D> implements SystemSettingsService{

    public SystemSetting getSystemSettingById(long id) {
        return getDao().getSystemSettingById(id);
    }

    public SystemSetting getSystemSettingByName(String name) {
        return getDao().getSystemSettingByName(name);
    }

    public List<SystemSetting> getAll() {
        return getDao().getAll();
    }
}